﻿@using Models;
@model MvcPager.Page<expert>
<table class="table-default">
    <thead>
        <tr>
            <td>姓名</td>
            <td>职称</td>
            <td>手机号码</td>
            <td>是否已经认证</td>
            <td>当前选手</td>
            <td>当前选手打分</td>
            <td class="width-170">操作</td>
        </tr>
    </thead>
    <tbody>
        @if (Model.PageList != null && Model.PageList.Count > 0)
        {
            foreach (var item in Model.PageList)
            {
                <tr class="ajax-item">
                    <td>@item.name</td>
                    <td>@item.position</td>
                    <td>@item.mobile</td>
                    <td>@(item.userid > 0 ? "是" : "否")</td>
                    <td>@item.Player</td>
                    <td>@item.Score</td>
                    <td class="width-200">
                        <ul class="control-ul control-ul-2">
                            <li>
                                <a href="/admin/expert/edit?id=@item.id">
                                    <i class="fa fa-pencil"></i><span>编辑</span>
                                </a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="ajaxdelete(this)" data-url="/admin/expert/delete?id=@item.id">
                                    <i class="fa fa-trash"></i><span>删除</span>
                                </a>
                            </li>
                        </ul>
                    </td>
                </tr>
            }
        }
    </tbody>
</table>
@{Html.RenderPartial("_Pager", Model);}